<!DOCTYPE html>
<html>
<head>
	<title>chat</title>
	<meta name="renderer" content="webkit">
  	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<script type="text/javascript" src="public\static\layui\layui.js"></script>
	<script type="text/javascript" src="public\static\layui\layui.js" charset="utf-8"></script>
	<link rel="stylesheet" href="public\static\layui\css\layui.css" media="all">
</head>
<body>
	<div class="site-demo-button">
  		<button class="layui-btn site-demo-layim" data-type="chat">自定义会话</button>
  	</div> 
             

</body>
<script type="text/javascript">
	var Socket = new WebSocket("ws://127.0.0.1:8282");
	console.log(Socket.readyState);
	ws.onmessage = function(e){
		console.log(e);
	}
	
</script>
</html>